<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="templates/common.xhtml">
	<ui:define name="pageHeader">
	    Liste des restaurants 
	</ui:define>
	<ui:define name="body">
	<br/>  <br/>
	<h:form>
	 <h:dataTable id="idTableRestaurants" border="1" value="#{listeRestaurantMB.listeRestaurants}" var="r">
	          <h:column>
	              <f:facet name="header"><f:verbatim>id</f:verbatim></f:facet>
	              <h:commandLink value="#{r.id}" action="#{listeRestaurantMB.doSelection}" >
	                 <f:setPropertyActionListener target="#{listeRestaurantMB.idSelRestaurant}"  value="#{r.id}"/>
	              </h:commandLink>
	         </h:column>
	         <h:column>
	              <f:facet name="header"><f:verbatim>nom</f:verbatim></f:facet>
	              <h:outputText value="#{r.nom}" />
	         </h:column>
	  </h:dataTable>
	  <br/>  <br/>
	 
	</h:form>  
	</ui:define>
	
</ui:composition>
</html>